export default {
	data() {
		return {
		}
	},
	methods: {
		onExcel(url, param){
			this.$reqPost(url, { ...param, export:1, page:1, limit:10000}).then(res=>{
				const downloadTask = uni.downloadFile({
					url: res.otherData,
					success: function(res) {
						let filePath = res.tempFilePath;
						uni.openDocument({
						filePath: filePath,
							showMenu: true,
							success: function(res) {
								console.log('打开文档成功');
							}
						});
					}
				});
				downloadTask.onProgressUpdate()
			})
		},
	}
}
